-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p2p/discover: fix ENR filtering #2770
Conversation
c276c8f
to
d54be9f
Compare
may merge to develop branch now. |
d54be9f
to
106c31a
Compare
[email protected] سلام |
0x08Dc6385204D434f0A407902eF6A271de0366912 |
p2p/discover/table.go
Outdated
@@ -493,15 +490,15 @@ func (tab *Table) bucketAtDistance(d int) *bucket { | |||
} | |||
|
|||
//nolint:unused |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove //nolint:unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
this is the previous PR: #1320, for reference |
p2p/discover/table.go
Outdated
tab.mutex.Unlock() | ||
tab.addNodeHandled <- ok | ||
go func() { | ||
tab.addNodeHandled <- tab.handleAddNode(op) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't it be blocked? as there is no consumer for this channel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Description
Reintroducing ENR filtering back. This allows discv4 ENR filtering and add small support for discv5 that could be enabled later on based on testing.